﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CoyoEden.Models;

namespace CoyoEden.Services
{
    public interface ITopicService
    {
        /// <summary>
        /// Retrieves a Topic from the provider based on the specified id.
        /// </summary>
        Topic SelectTopic(int id);
        /// <summary>
        /// Inserts a new Topic into the data store specified by the provider.
        /// </summary>
        void InsertTopic(Topic item);
        /// <summary>
        /// Updates an existing Topic in the data store specified by the provider.
        /// </summary>
        void UpdateTopic(Topic item);
        /// <summary>
        /// Deletes a Topic from the data store specified by the provider.
        /// </summary>
        void DeleteTopic(Topic item);
        /// <summary>
        /// Retrieves all Topics from the provider and returns them in a List.
        /// </summary>
        List<Topic> FillTopics();
    }
}
